<template>
  <div>

    <i-frame :src="url" style="margin-top: 10px"/>
  </div>
</template>
<script>
  import iFrame from "@/components/iFrame/index";
  import {getUserProfile} from "@/api/system/user";


  export default {
    name: "file",
    components: { iFrame },
    data() {
      const user = null;
      const userid = this.$store.state.user.userid;
      const stuName = this.$store.state.user.name;
      const deptid = this.$store.state.user.deptid;
      return {
        //通过json传参,'http://localhost:9901/user/login1?username='+username

        url:'http://10.100.37.127:9901/user/login2?stuName='+stuName+"&deptId="+deptid+"'"
        //学生端
        // http://localhost:8010/#/login
//管理员端
//         url:'http://localhost:8002/#/login'
      };
    },
    created() {
      this.getUser();
      this.get();


    },
    methods: {


      getUser(){
        getUserProfile().then(response => {
          this.data().user = response.data;
        });
      }
    }
  };
</script>
